package datatypes.tv;

public class tvProgram {

	private String name;
	private String id;
	private tvProgramCreators program_creators;
	private String air_date_of_first_episode;
	private String air_date_of_final_episode;
	private String number_of_episodes;
	private tvGenres genres;
	private tvStarringRoles regular_cast;
	private String number_of_seasons;
	private int programId;
	private String countryOfOrigin;

	public tvProgram(String name, String id, String air_date_of_first_episode,
			String air_date_of_final_episode, String number_of_episodes,
			String number_of_seasons,String countryOfOrigin) {

		this.name = name;
		this.id = id;
		this.setProgram_creators(new tvProgramCreators());
		this.air_date_of_first_episode = air_date_of_first_episode;
		this.air_date_of_final_episode = air_date_of_final_episode;
		this.number_of_episodes = number_of_episodes;
		this.genres = new tvGenres();
		this.regular_cast = new tvStarringRoles();
		this.number_of_seasons = number_of_seasons;
		this.countryOfOrigin = countryOfOrigin;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void addGenre(tvGenre tv_genre) {
		this.genres.addGenre(tv_genre);
	}

	public void addProgramCreator(tvProgramCreator tv_program_creator) {
		this.program_creators.addProgramCreator(tv_program_creator);
	}

	public String getAir_date_of_first_episode() {
		return air_date_of_first_episode;
	}

	public void setAir_date_of_first_episode(String air_date_of_first_episode) {
		this.air_date_of_first_episode = air_date_of_first_episode;
	}

	public String getAir_date_of_final_episode() {
		return air_date_of_final_episode;
	}

	public void setAir_date_of_final_episode(String air_date_of_final_episode) {
		this.air_date_of_final_episode = air_date_of_final_episode;
	}

	public String getNumber_of_episodes() {
		return number_of_episodes;
	}

	public void setNumber_of_episodes(String number_of_episodes) {
		this.number_of_episodes = number_of_episodes;
	}

	public String getNumber_of_seasons() {
		return number_of_seasons;
	}

	public void setNumber_of_seasons(String number_of_seasons) {
		this.number_of_seasons = number_of_seasons;
	}

	public tvGenres getGenres() {
		return genres;
	}

	public void setGenres(tvGenres genres) {
		this.genres = genres;
	}

	public tvProgramCreators getProgram_creators() {
		return program_creators;
	}

	public void setProgram_creators(tvProgramCreators program_creators) {
		this.program_creators = program_creators;
	}

	public void setProgramId(int programId) {
		this.programId = programId;
	}

	public int getProgramId() {
		return programId;
	}

	public tvStarringRoles getRegular_cast() {
		return regular_cast;
	}

	public void setRegular_cast(tvStarringRoles regular_cast) {
		this.regular_cast = regular_cast;
	}
	
	public void addStarringRoleToCast(tvStarringRole castRole){
		this.regular_cast.addStarringRole(castRole);
	}

	public String getCountryOfOrigin() {
		return countryOfOrigin;
	}

	public void setCountryOfOrigin(String countryOfOrigin) {
		this.countryOfOrigin = countryOfOrigin;
	}

}
